﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using System.Web;

namespace Slam.FieldTypes
{
	public class SlamFieldActionContext
	{	
		public SPField Field
		{
			get;
			set;
		}

		public SlamFieldControl FieldControl
		{
			get;
			set;
		}

		public string FormUrl
		{
			get;
			set;
		}

		private HttpContext _httpContext;
		public HttpContext HttpContext
		{
			get
			{
				if (_httpContext == null && HttpContext.Current != null)
					_httpContext = HttpContext.Current;
				return _httpContext;
			}
		}

		public int ListItemId
		{
			get;
			set;
		}

		public string SlamId
		{
			get;
			set;
		}

		private SPContext _spContext;
		public SPContext SPContext
		{
			get
			{
				if (_spContext == null && SPContext.Current != null)
					_spContext = SPContext.Current;
				return _spContext;
			}
		}

		
	}
}
